<admintpl file="headerEx" />
<title>{:L('PORTAL_ADMINPAGE_RECYCLEBIN')}</title>

<!--responsive table-->
<link href="__PUBLIC__/TciocEx/css/table-responsive.css" rel="stylesheet" />
<link href="__PUBLIC__/js/artDialog/skins/default.css" rel="stylesheet" />
</head>

<!-- Placed js at the end of the document so the pages load faster -->
<body class="sticky-header">
<section>
	<!-- main content start-->
	<div class="full-content" >
		<!--body wrapper start-->
		<div class="wrapper js-check-wrap">
			<div class="row">
				<div class="col-sm-12">
					<section class="panel">
						<header class="panel-heading custom-tab turquoise-tab">
							<ul class="nav nav-tabs">
								<li class="active"><a href="javascript:;"><i class="fa fa-list-ul"></i>  {:L('PORTAL_ADMINPAGE_RECYCLEBIN')}</a></li>
							</ul>
						</header>
						<div class="panel-body">
							<section class="panel">
								<div class="panel-body">
									<form class="form-inline" role="form" method="post" action="{:U('AdminPage/index')}">
										<div class="form-group">
											<label class="sr-only" style="position: initial;display: inline;" for="start_time">{:L('POST_DATE')}:</label>
											<input type="text" name="start_time"  id="start_time" class="js-datetime" value="{$formget.start_time|default=''}"  style="    border-radius: 4px;" autocomplete="off">-
											<input autocomplete="off" type="text" class="js-datetime" name="end_time" value="{$formget.end_time|default=''}"  style="    border-radius: 4px;">
										</div>
										<div class="form-group">
											<label class="sr-only" style="position: initial;display: inline;" for="keyword">{:L('KEYWORD')}:</label>
											<input type="text" class="input" name="keyword"  id="keyword" value="{$formget.keyword|default=''}" placeholder="请输入关键字..." style="    border-radius: 4px;">
										</div>

										<button type="submit" class="btn btn-primary"><i class="fa fa-search "></i>{:L('SEARCH')}</button>
										<a class="btn btn-danger" href="{:U('AdminPage/index')}"> <i class="fa fa-trash-o"></i>清空</a>
									</form>


								</div>
							</section>
							<section id="no-more-tables">
								<form class="js-ajax-form" method="post">
									<div class="table-actions" style="    padding-bottom: 10px;">
										<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPage/clean')}" data-subcheck="true" data-msg="{:L('DELETE_CONFIRM_MESSAGE')}">{:L('DELETE')}</button>
									</div>
									<table class="table table-hover table-bordered table-list">
										<thead>
										<tr>
											<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
											<th width="100">ID</th>
											<th>标题</th>
											<!-- <th>点击量</th> -->
											<th width="80">发布人</th>
											<th width="120"><span>发布时间</span></th>
											<th width="120">{:L('ACTIONS')}</th>
										</tr>
										</thead>
										<foreach name="posts" item="vo">
											<tr>
												<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>
												<td><a>{$vo.id}</a></td>
												<td><span>{$vo.post_title}</span></td>
												<!-- <td>0</td> -->
												<td>{$users[$vo['post_author']]['user_login']}</td>
												<td>{$vo.post_date}</td>
												<td>
													<a href="{:U('AdminPage/restore',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定还原吗？">还原</a>|
													<!--<a href="{:U('AdminPage/clean',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>-->
													<a href="{:U('AdminPage/clean',array('id'=>$vo['id'],'id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定删除吗？" >删除</a>
												</td>
											</tr>
										</foreach>
										<tfoot>
										<tr>
											<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
											<th width="100">ID</th>
											<th>标题</th>
											<!-- <th>点击量</th> -->
											<th width="80">发布人</th>
											<th width="120"><span>发布时间</span></th>
											<th width="120">{:L('ACTIONS')}</th>
										</tr>
										</tfoot>
									</table>
									<div class="table-actions">
										<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminPage/clean')}" data-subcheck="true" data-msg="你确定删除吗？">{:L('DELETE')}</button>
									</div>
									<div class="pagination">{$page}</div>
								</form>
							</section>
						</div>
					</section>
				</div>
			</div>
		</div>

	</div>
	</div>
	</div>
	<!--body wrapper end-->

	<!--footer section start-->
	<footer>
		<admintpl file="copyright" />
	</footer>
	<!--footer section end-->

	</div>
	<!-- main content end-->
</section>
<script src="__PUBLIC__/TciocEx/js/jquery-1.10.2.min.js"></script>

<script src="__PUBLIC__/js/wind.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="__PUBLIC__/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/modernizr.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery.nicescroll.js"></script>
<script src="__PUBLIC__/js/ajaxForm.js"></script>


<script type="text/javascript" src="__PUBLIC__/TciocEx/js/jquery.validate.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-localization/messages_zh.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/scripts.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-init.js"></script>
<script>
	setCookie('refersh_time', 0);
	function refersh_window() {
		var refersh_time = getCookie('refersh_time');
		if (refersh_time == 1) {
			window.location.reload();
		}
	}
	setInterval(function() {
		refersh_window()
	}, 2000);
</script>
</body>
</html>